package com.textmanager.model;

public class TextFile {
    private int id;
    private String name;
    private String content;
    private int directoryId;

    public TextFile(int id, String name, String content, int directoryId) {
        this.id = id;
        this.name = name;
        this.content = content;
        this.directoryId = directoryId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getDirectoryId() {
        return directoryId;
    }

    public void setDirectoryId(int directoryId) {
        this.directoryId = directoryId;
    }

    @Override
    public String toString() {
        return name;
    }
}